<div class="row">
  <div id="breadcrumb" class="col-md-12">
    <ol class="breadcrumb">
      <li><a ui-sref="layout.main">主页</a></li>
      <li><a ui-sref="layout.list.role">角色列表</a></li>
      <li><a href="javascript:;">添加角色</a></li>
    </ol>
  </div>
</div>
<div class="well" style="background-color: #FFFFFF;">
  <div class="row">
    <div class="col-xs-12">
      <h3>新添角色</h3>
    </div>
  </div>
  <hr />
  <div class="row">
    <div class="col-xs-12">
      <form class="form-horizontal">
        <div class="form-group">
          <label class="col-sm-2 control-label">编号</label>
          <div class="col-sm-10">
            <input type="text" ng-model="roleItem.id" class="form-control" ng-disabled="true">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">角色名称</label>
          <div class="col-sm-10">
            <input type="text" ng-model="roleItem.role_name" class="form-control" ng-disabled="update">
          </div>
        </div>

        <div class="form-group">
          <label class="col-sm-2 control-label">角色描述</label>
          <div class="col-sm-10">
            <input type="text" ng-model="roleItem.role_desc" class="form-control" ng-disabled="update">
          </div>
        </div>
        <div class="form-group">
          <div class="col-xs-2"></div>
          <div class="col-xs-2">
            <button class="btn btn-block btn-success" ng-click="add()" ng-if="!update">确认添加</button>
          </div>
          <div class="col-xs-2">
            <input class="btn btn-block btn-danger" ng-click="back()" type="button" ng-if="!update" value="取消" />
          </div>
        </div>
      </form>
    </div>
  </div>
</div>